package com.tyl.controller;

import com.tyl.service.UserFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserFeignService userFeignService;
    @GetMapping("/selectAll")
    public String user(){
        String s = userFeignService.ProductSelectAll();
        return "这是用户模块测试:+"+s;
    }
    @GetMapping("/selectById")
    public String user2(){
        String s = userFeignService.selectById(1);
        return "user模块+"+s;
    }

}
